package hello

import (
	"github.com/gogf/gf/frame/g"
	"github.com/gogf/gf/net/ghttp"
	"ubf/app/api"
	f "ubf/util"
)

// Hello is a demonstration route handler for output "Hello World!".
func Hello(r *ghttp.Request) {
	api.Res{
		Data: g.Map{
			"server": f.GCS("appName"),
			"node":   f.GCS("server.Node"),
			"ip":     r.GetClientIp(),
		},
	}.Success(r)
}
